 #include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
    int n;
    while(cin>>n){
        int temp;
        int arr[55];
        for(int i=0;i<n;i++){
            cin>>arr[i];
        }
        cin>>arr[n];
        sort(arr,arr+n+1);
         for(int i=0;i<=n;i++){
            cout<<arr[i]<<" ";
        }
    }
    return 0;
}
